package com.fdd.furns.dao;

import com.fdd.furns.entity.Furn;

import java.util.List;

public interface FurnDAO {
    public List<Furn> queryFurns();

    //添加家居
    public int add(Furn furn);

    //删除家居
    public int deleteFurnById(int id);

    //根据id查询对应的家居对象
    public Furn queryFurnById(int id);

    //当前页显示的数据
    public List<Furn> getPageItems(int begin, int pageSize);



    int updateFurn(Furn furn);

    //从数据库取的数据放入DAO中
    int getTotalRow();

    //根据家具名模糊查询
    int getTotalRowByName(String name);


    //根据家具名模糊查询当前页的数据
    public List<Furn> getPageItemsByName(int begin, int pageSize, String name);
}
